package com.tongfusoft.document.personalCenter.myFollow.service;

import java.util.List;

import com.tongfusoft.da.pagehelper.PageInfo;
import com.tongfusoft.document.entity.Docs;
import com.tongfusoft.document.entity.UserFollows;
import com.tongfusoft.document.entity.Users;

public interface IMyFollowService {
	/**
	 * 我的关注
	 * @param user
	 * @return
	 */
	public PageInfo<Docs> follow(Users user,UserFollows userFollows,int pageSize,int pageIndex);
	/**
	 * 删除关注
	 * @param user
	 * @return
	 */
	public void delUserFollowDoc(UserFollows userFollows,Users user);
	/**
	 * 添加关注
	 * @param user
	 * @return
	 */
	public void createUserFollow(UserFollows userFollows,Users user);
	/**
	 * 查询关注
	 * @param userFollows
	 */
	public UserFollows getUserFollow(UserFollows userFollows);
	
	/**
	 * （公共）查询某文档关注的用户有哪些
	 */
	public List<UserFollows> getUserByDocName(UserFollows userFollows);
}
